ses = 365*24*60*60
person_num = 3120324986
print(person_num + (ses // 7  - ses//13 + ses//45) * 1 )
print(person_num + (ses // 7  - ses//13 + ses//45) * 2 )
print(person_num + (ses // 7  - ses//13 + ses//45) * 3 )
print(person_num + (ses // 7  - ses//13 + ses//45) * 4 )
print(person_num + (ses // 7  - ses//13 + ses//45) * 5 )